﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;

namespace Bind.ViewModel
{
    class BindViewModel:Notify
    {
        ObservableCollection<BindItem> _BindingList = new ObservableCollection<BindItem>();
        public ObservableCollection<BindItem> BindItems
        {
            get => _BindingList;
            set { _BindingList = value; RaisePropertyChanged("BindItems"); }
        }
        public class BindItem : Notify
        {
            string _Type;
            public string Type
            {
                get { return _Type; }
                set { _Type = value; RaisePropertyChanged("Type"); }
            }
            string _Mcu;
            public string Mcu
            {
                get { return _Mcu; }
                set { _Mcu = value; RaisePropertyChanged("Mcu"); }
            }
            string _Ldrom;
            public string Ldrom
            {
                get { return _Ldrom; }
                set { _Ldrom = value; RaisePropertyChanged("Ldrom"); }
            }
            string _Aprom;
            public string Aprom
            {
                get { return _Aprom; }
                set { _Aprom = value; RaisePropertyChanged("Aprom"); }
            }
            string _User;
            public string User
            {
                get { return _User; }
                set { _User = value; RaisePropertyChanged("User"); }
            }
            string _Time;
            public string Time
            {
                get { return _Time; }
                set { _Time = value; RaisePropertyChanged("Time"); }
            }
            SolidColorBrush _BackColor = BaseModel.ColorModel.ListItemColor1;
            public SolidColorBrush BackColor
            {
                get { return _BackColor; }
                set { _BackColor = value; }
            }
        }
    }
}
